<?PHP 
date_default_timezone_set("Asia/Chongqing");
include("../config/connect.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="http://www.gouwutu.com/n2/v2/css/nav/style=20110623.css" />
<style type="text/css">
.fashionDress .items a img { width:auto; max-width:220px; max-height:220px; height:220px; _width:expression((documentElement.clientWidth >220) ? "220px" : "auto" ); }
* html .fashionDress .items a img { width: expression( document.body.clientWidth > 220 ? "220px" : "auto" ); max-width:220px; }
</style>
</head>
<body>
<div class="fashionDress modbox">
	<div class="hd"><a href="javascript:void(0);"><h2 title="">精品推荐</h2></a></div>
    <div class="bd">
        <div class="items clearfix">
        	<?php
			$sql = "select * from goods_items order by time desc limit 16";
            $result = mysql_query( $sql );;
			$i = 0;
			while( $result && $row = mysql_fetch_assoc( $result ))
			{
            ?>
            <a target="_blank" href="<?PHP echo $row["url"]; ?>" class="first"><img src="<?PHP echo $row["pic_url"]."_250x250.jpg"; ?>" alt="<?PHP echo $row["item_title"]; ?>" title="<?PHP echo $row["item_title"]; ?>">
            <p title="<?PHP echo $row["item_title"]; ?>" class="title"><?PHP echo $row["item_title"]; ?></p>
            <p class="price"><span class="discount"><?PHP
                        $item_time = strtotime($row["time"], time());
						$spanTime = (time() - $item_time) / 3600;
						if ( date('yG', $item_time) == date('yG', time()))
							echo "今天 ".date('G:i', $item_time);
						else if ( $spanTime < 48)
							echo "昨天 ".date('G:i', $item_time);
						else
							echo date('m月j日 G:i', $item_time);
//						echo mysql_result($result, $i, "time");
						
						?></span></p>
            <p class="price qz-price" style="font-size:14px;"> <em style="font-size:14px"><?PHP echo $row["fee"]; ?></em><span <?php if(round(0.6*$row["commission"], 2) == ""){ echo 'style="display:none"';} ?>>&nbsp;<span class="coin">返</span><span class="fan">&nbsp;<?PHP echo round(0.6*$row["commission"], 2); ?></span></span></p>
            </a>
           <?php } ?>
        </div>
        <div class="modbox-catalog">
                        <a target="_blank" href="http://s.taobao.com/search?spm=1.40816.70800.1&amp;q=%B6%CC%BF%E3&amp;refpid=420460_1006&amp;source=tbsy&amp;pdc=true">短裤</a>
                        <a target="_blank" href="http://s.taobao.com/search?spm=1.40816.70800.2&amp;q=%C1%AC%D2%C2%C8%B9&amp;refpid=420461_1006&amp;source=tbsy&amp;pdc=true">连衣裙</a>
                        <a target="_blank" href="http://s.taobao.com/search?spm=1.40816.70800.3&amp;q=%C1%B9%D0%AC+%C5%AE&amp;refpid=420462_1006&amp;source=tbsy&amp;pdc=true" style="color:red;">凉鞋</a>
                        <a target="_blank" href="http://s.taobao.com/search?spm=1.40816.70800.4&amp;q=%D1%A9%B7%C4%C9%C0&amp;refpid=420463_1006&amp;source=tbsy&amp;pdc=true">雪纺衫</a>
                        <a target="_blank" href="http://s.taobao.com/search?spm=1.40816.70800.5&amp;q=t%D0%F4+%B6%CC%D0%E4&amp;refpid=420464_1006&amp;source=tbsy&amp;pdc=true">短袖T恤</a>
                        <a target="_blank" href="http://s.taobao.com/search?spm=1.40816.70800.6&amp;q=%C5%AE%B0%FC+%CC%C7%B9%FB%C9%AB&amp;refpid=420465_1006&amp;source=tbsy&amp;pdc=true&amp;style=grid">夏日美包</a>
                         <a target="_blank" href="http://s.taobao.com/search?spm=1.40816.70800.7&amp;q=%CC%AB%D1%F4%BE%B5&amp;refpid=420466_1006&amp;source=tbsy&amp;pdc=true">太阳镜</a>
                          <a target="_blank" href="http://s.taobao.com/search?spm=1.40816.70800.8&amp;q=%B3%A4%C8%B9&amp;cat=16&amp;refpid=420467_1006&amp;source=tbsy&amp;pdc=true">长裙</a>
                        <a href="http://top.taobao.com/index.php?from=tbsy">更多&gt;&gt;</a>
                    </div>
    </div>
</div>
</body>
</html>
